package com.goodwill.androidtest.notifyItem.provider;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseViewHolder;
import com.chad.library.adapter.base.provider.BaseItemProvider;
import com.goodwill.androidtest.R;
import com.goodwill.androidtest.notifyItem.MultiItemBean;
import com.goodwill.androidtest.notifyItem.ViewType;

public class EditTextArgumentProvider extends BaseItemProvider<MultiItemBean, BaseViewHolder> {
    @Override
    public int viewType() {
        return ViewType.EDITTEXT.ordinal();
    }

    @Override
    public int layout() {
        return R.layout.item_edittext_argument_layout;
    }

    @Override
    public void convert(@NonNull BaseViewHolder helper, MultiItemBean data, int position) {
        helper.setText(R.id.tv_title, data.getCategery());
        helper.setText(R.id.tv_content, data.getTitle());
    }
}
